@REM .\venv\Scripts\activate
@echo off
echo 启动 Creeps Battle 项目...

echo 安装Python依赖...
pip install django
pip install -r requirements.txt

echo 进入Django服务器目录...
cd creeps_server

echo 执行数据库迁移...
python manage.py migrate

echo 启动Django服务器...
start "Django Server" python manage.py runserver

echo 返回根目录...
cd ..

echo 进入战斗服务器目录...
cd battle_server

echo 安装Node.js依赖...
npm install

echo 返回根目录...
cd ..

echo 进入前端目录...
cd frontend

echo 安装前端依赖...
npm install

echo 启动前端开发服务器...
npm run dev

pause